require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

permissions_path = '../node_modules/react-native-permissions/ios'

platform :ios, '11.0'

target 'RNProject' do
  config = use_native_modules!

  use_react_native!(:path => config["reactNativePath"],
  # to enable hermes on iOS, change `false` to `true` and then install pods
  :hermes_enabled => false)
  
  pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
  pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary"
  pod 'Permission-PhotoLibraryAddOnly', :path => "#{permissions_path}/PhotoLibraryAddOnly"

end
